
docker pull redis:7.0
docker run -itd -p 6379:6379 --name redis -d redis:7.0
docker pull zookeeper
# docker run -d --name zookeeper --privileged=true -p 2181:2181 zookeeper
docker run -d --name zookeeper -p 2181:2181 zookeeper
docker pull mysql:5.7
docker run -p 3306:3306 --name mysql5.7 -e MYSQL_ROOT_PASSWORD=wujialiang -d mysql:5.7

# docker pull bitnami/kafka:2.8.1
# docker run -itd -p 9092:9092 --name kafka-server -e ALLOW_PLAINTEXT_LISTENER=yes bitnami/kafka:2.8.1
docker pull bitnami/kafka

docker run -d --name kafka -p 9092:9092 -e KAFKA_BROKER_ID=0 -e KAFKA_ZOOKEEPER_CONNECT=8.148.24.46:2181 -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://8.148.24.46:9092 -e KAFKA_LISTENERS=PLAINTEXT://8.148.24.46:9092 -t bitnami/kafka


# docker run -d --name kafka -p 9092:9092 \
# --link zookeeper \
# --env KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 \
# --env KAFKA_ADVERTISED_HOST_NAME=localhost \
# --env KAFKA_ADVERTISED_PORT=9092  \
# --env KAFKA_LOG_DIRS=/kafka/logs \
# bitnami/kafka

# docker pull minio/minio
docker pull docker.io/minio/minio:RELEASE.2022-05-26T05-48-41Z
# docker run -p 9000:9000 -p 9090:9090 --name minio -d --restart=always -e "MINIO_ACCESS_KEY=minioadmin" -e "MINIO_SECRET_KEY=minioadmin" minio/minio:RELEASE.2022-05-26T05-48-41Z server --console-address ":9090" -address ":9000"
docker run --name minio -d -e "MINIO_ACCESS_KEY=minioadmin" -e "MINIO_SECRET_KEY=minioadmin" -p 9000:9000 -p 9001:9001 docker.io/minio/minio:RELEASE.2022-05-26T05-48-41Z server /data --console-address ":9001" 


docker pull mongo
# -e MONGO_INITDB_ROOT_USERNAME=admin   -e MONGO_INITDB_ROOT_PASSWORD=admin123456
docker run -itd --name mongodb   -p 27017:27017 mongo
docker exec -it mongodb /bin/mongosh 
use admin
db.createUser({ user: 'admin', pwd: 'admin123456', roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] });
db.auth("admin","admin123456");
exit

go env -w GOPROXY=https://goproxy.cn

cd /
mkdir code
cd code
git clone https://github.com/OpenIMSDK/Open-IM-Server.git







sudo tee /etc/docker/daemon.json <<-'EOF'
{
	"registry-mirrors": ["https://docker.1panel.live", "https://hub.rat.dev/", "https://docker.chenby.cn", "https://docker.m.daocloud.io"]
}
EOF


gcc automake autoconf libtool make